#include "ThreadPool.hpp"
#include <functional>
using namespace my_threadpool;
using task_t = std::function<void()>;
void Download()
{
   cout << "我是一个下载任务..." <<endl;
}
int main()
{
    int count=5;
    while(count--)
    {
        ThreadPool<task_t>::GetTreadPool()->Push(Download);
        sleep(1);
    }
    ThreadPool<task_t>::GetTreadPool()->Join();
    return 0;
}